package com.controller;

import com.comm.LogAnno;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class myController {

    @LogAnno(OperateType = "自定义接口")
    @RequestMapping(value = "/myController", method = RequestMethod.PUT)
    public String myController(String userName) {
        System.out.println("接受访问接口时的参数" + userName);

        return "返回数据";
    }
}
